home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
163_01
/
fputs.c
< prev
next >
Wrap
Text File
|
1988-01-30
|
384b
|
14 lines
/*
** put a string to a stream file
*/
extern int fputc();
fputs(s, stream) char *s; int *stream; {
char ch, *str;
str=s;
while(ch=*s++) {
if(fputc(ch, stream) == -1) return -1;
}
return str;
}